using AutoChess.ConfigData;
using GameBase;
using UnityEngine;

namespace AutoChess
{
    class ModelFactory :Singleton<ModelFactory>
    {
        public GameObject LoadModel(ModelConfig modelConfig, out AnimatorInterface animInterface)
        {
            string path = modelConfig.ModelFile;
            animInterface = new UnityAnimatorInterface();
            return BResources.AllocGameObject(path);
        }
        public GameObject LoadModelAsync(ModelConfig modelConfig, out AnimatorInterface animInterface)
        {
            string path = modelConfig.ModelFile;
            animInterface = new UnityAnimatorInterface();
            return BResources.AllocGameObject(path);
        }
    }
}